<template>
  <div class="continer">
    <el-menu :default-active="$route.name" class="m-pageViewNav" mode="horizontal" active-text-color="#409EFF">
      <el-submenu index="2" :show-timeout="200">
        <template slot="title">相关资料</template>
        <el-menu-item index="LeadDetailsLeade">
          <router-link :to="{name:'LeadDetailsLeade',params:$route.params,query:$route.query}">LEAD资料</router-link>
        </el-menu-item>
        <el-menu-item index="LeadDetailsReal">
          <router-link :to="{name:'LeadDetailsReal',params:$route.params,query:$route.query}">真实相关</router-link>
        </el-menu-item>
        <el-menu-item index="LeadDetailsDemo">
          <router-link :to="{name:'LeadDetailsDemo',params:$route.params,query:$route.query}">DEMO</router-link>
        </el-menu-item>
        <el-menu-item index="LeadDetailsLive">
          <router-link :to="{name:'LeadDetailsLive',params:$route.params,query:$route.query}">直播间</router-link>
        </el-menu-item>
        <el-menu-item index="LeadDetailsStatistics">
          <router-link :to="{name:'LeadDetailsStatistics',params:$route.params,query:$route.query}">统计数据</router-link>
        </el-menu-item>
      </el-submenu>
      <el-menu-item index="LeadDetailsFollowUp">
        <router-link :to="{name:'LeadDetailsFollowUp',params:$route.params,query:$route.query}">跟进项</router-link>
      </el-menu-item>
      <el-menu-item index="LeadDetailsRemarks">
        <router-link :to="{name:'LeadDetailsRemarks',params:$route.params,query:$route.query}">备注</router-link>
      </el-menu-item>
      <el-menu-item index="LeadDetailsChangeLog">
        <router-link :to="{name:'LeadDetailsChangeLog',params:$route.params,query:$route.query}">修改日志</router-link>
      </el-menu-item>
    </el-menu>
    <div class="layout-2">
        <router-view/>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'LeadDetails',
    data () {
      return {}
    }
  }
</script>

<style scoped lang="scss">
  @import "../../scss/variables";
  .continer {
    min-height: 100%;
    display: flex;
    flex-direction:column;
    .layout-2 {
      padding: $pagePadding;
      flex: 1;
      display: flex;
      flex-direction:column;
    }
  }
</style>
